import request from '@/utils/request'

export function getTeacherList(courseId) {
  return request({
    url: '/analysis_grade/teachers',
    method: 'get',
    params: {
      courseId
    }
  })
}

export function getCourseList() {
  return request({
    url: '/analysis_grade/courses',
    method: 'get'
  })
}

export function normality(courseId, teacherId, semester) {
  return request({
    url: '/analysis_grade/normality',
    method: 'get',
    params: {
      courseId,
      teacherId,
      semester
    }
  })
}

export function discrimination(courseId, teacherId, quantile, semester) {
  return request({
    url: '/analysis_grade/discrimination_analysis',
    method: 'get',
    params: {
      courseId,
      teacherId,
      quantile,
      semester
    }
  })
}

export function variance(courseId, teacherId, semester) {
  return request({
    url: '/analysis_grade/class_grade_difference',
    method: 'get',
    params: {
      courseId,
      teacherId,
      semester
    }
  })
}

export function getSemesterList() {
  return request({
    url: '/analysis_grade/semesters',
    method: 'get'
  })
}
